package com.decade.sp09.feign;

import com.decade.sp01.pojo.Item;
import com.decade.web.util.JsonResult;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author: decade
 * @Description: 商品降级
 * @Date: 2021/1/20 16:06
 **/
@Component
public class ItemClientFB implements ItemClient{
    @Override
    public JsonResult<List<Item>> getItems(String orderId) {
        return JsonResult.err().msg("获取商品列表失败");
    }

    @Override
    public JsonResult decreaseNumber(List<Item> items) {
        return JsonResult.err().msg("减少库存失败");
    }
}
